package com.yixin.hospital.entity.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

import javax.annotation.Generated;

/**
 * 药品仓库药品表
 * @TableName drug_depository_drug
 */
@TableName(value ="drug_depository_drug")
@Data
public class DrugDepositoryDrug implements Serializable {
    /**
     * 药品仓库药品表id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 所属库房
     */
    private Long drugDepositoryId;

    /**
     * 药品编码
     */
    private String drugCode;

    /**
     * 剩余数量
     */
    private Integer num;

    /**
     * 剩余数量
     */
    private Integer subNum;

    /**
     * 药品生产日期
     */
    private Date productTime;

    /**
     * 保质期
     */
    private Integer qualityTime;

    /**
     * 药品有效期
     */
    private Date expiration;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(value = "sum(num)",insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private  Integer nums;
}